package test.monitors;

import basemod.interfaces.OnStartBattleSubscriber;
import basemod.interfaces.PostBattleSubscriber;
import com.megacrit.cardcrawl.core.Settings;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.potions.AbstractPotion;
import com.megacrit.cardcrawl.rooms.AbstractRoom;
import test.patches.SoyoRelicPatch;

public class SoyoRelicMonitor implements OnStartBattleSubscriber, PostBattleSubscriber {

    public static void resetPotionCanUse(){
        for(AbstractPotion potion : AbstractDungeon.player.potions){
            SoyoRelicPatch.SoyoRelicFieldPatch.hasUsed.set(potion, false);
        }
    }

    @Override
    public void receiveOnBattleStart(AbstractRoom abstractRoom) {
        resetPotionCanUse();
    }


    @Override
    public void receivePostBattle(AbstractRoom abstractRoom) {
        resetPotionCanUse();
    }
}
